﻿namespace IBTrader.Indicator.Average
{
    using IBTrader.Charts;
    
    class DEMA : XEMA
    {
        public DEMA(Worker worker, double interval = 20) : base(worker, interval, interval) 
        {
            emas[1].Hit += (_, line) => OnHit(line, 2 * emas[0].Last.Price - emas[1].Last.Price);
        }
    }
}
